//
//  Config.h
//  ruhuo
//
//  Created by a on 15-1-26.
//  Copyright (c) 2015年 a. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "UIView+OUOExtensions.h"





#define API_VERSION     @"1.0"
#define Secert_VERSION     @"1.0"
#define SignKEY            @"b._*cGfd|Csxbz.,>?"
#define PhoneClass     @"1"
#define APPID     @"12"

typedef enum {
    QQLogin,
    WeChatLogin,
    WeiBoLogin,
} SocialLoginType;





//---------------------------------------------------------------------------------------------------------------
//外网地址（测试）
//#define kINTERFACE_ADDRESS(str) [NSString stringWithFormat:@"http://112.65.46.6:48080/%@",str]

//正式地址
#define kINTERFACE_ADDRESS(str) [NSString stringWithFormat:@"http://service.parnlink.com/%@",str]

//分享正式地址
#define kSHARE_URL @"http://mp.weixin.qq.com/s?__biz=MzAxNDE2MDE0OA==&mid=204342647&idx=1&sn=7cfaf42baca8871b925817c122da0e56#rd"



#define kIsString(str) [str isKindOfClass:[NSString class]] ? [str stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceCharacterSet]] : ([str isKindOfClass:[NSNull class]]?@"":str==nil?@"":[NSString stringWithFormat:@"%i",[str intValue]])

#define isIOS7   ([[[UIDevice currentDevice] systemVersion] floatValue] >= 7.0 ? YES : NO)

#define isIOS6   ([[[UIDevice currentDevice] systemVersion] floatValue] < 7.0 ? YES : NO)

#define isIPhone5 ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(640, 1136), [[UIScreen mainScreen] currentMode].size) : NO)

#define isIPhone4 ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(640, 960), [[UIScreen mainScreen] currentMode].size) : NO)

#define isIPhone6 ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(750, 1334), [[UIScreen mainScreen] currentMode].size) : NO)

#define isIPhone6p ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(1242,2208), [[UIScreen mainScreen] currentMode].size) : NO)


#define ScreenHeight [UIScreen mainScreen].bounds.size.height

#define ScreenWidth [UIScreen mainScreen].bounds.size.width

#define MColor(r,g,b,a) [UIColor colorWithRed:r/255.0 green:g/255.0 blue:b/255.0 alpha:a]

#define LOGIN @"login"                      //登录
#define ROLE @"role"                        //角色--0(求职)，1(招人)
#define ExpectJobArray @"role"              //角色--findjob(求职)，findtalents(招人)
#define CCommand @"command"                 //求推荐开关--0(关闭)，1(打开)
#define CCommandDay @"commandDay"           //求推荐时间--7，14，28
#define UserName @"userName"                //登录时的昵称
#define TextFieldText @"textFieldText"      //获取弹出框输入的text

#define WXHeadURL @"wxHeadUrl"              //微信头像URL

#define UId @"user_id"                      //用户ID
#define Token @"token"                      //用户Token

#define IsLastId @"isLastId"                //判断是否为上次账号 1是 0否

#define IsVerified @"isVerified"            //判断企业是否认证

#define IsIphoneLogin @"isIphoneLogin"      //判断是否是手机用户注册
#define IphoneTel @"iphoneTel"              //保存注册手机号码

//岗位需求
#define ProjectName @"projectName"          //项目名称
#define ProjectLight @"projectLight"        //项目亮点
#define WorkLocation @"workLocation"        //工作地点


#define DOWLOAD @"download"                                     //是否下载图片
#define FIRST_LOAD @"firstLoad"                                 //应用是否第一次启动
#define FIRST_LOAD_HOME @"firstLoadhome"                        //首页新手引导是否是第一次
#define FIRST_LOAD_LEFT @"firstLoadleft"                        //侧边栏新手引导是否是第一次(C)
#define FIRST_LOAD_LEFT_B @"firstLoadleftB"                     //侧边栏新手引导是否是第一次(B)

#define FIRST_LOAD_SHOWTIME @"firstLoadShowtime"                //推荐开关视图

#define FIRST_LOAD_Right @"firstLoadRight"                      //争夺记录是否是第一次(C)
#define FIRST_LOAD_Right_B @"firstLoadRightB"                   //争夺记录是否是第一次(B)

#define FIRST_LOAD_MYMANAGE @"firstLoadMyManage"                //是否是第一次(C)
#define FIRST_LOAD_COMPANYB @"firstLoadCompanyB"                //岗位管理是否是第一次(B)

#define FIRST_LOAD_AUTHENTICATION @"firstLoadauthentication"    //企业认证新手引导是否是第一次
#define WELCOM_IMAGE_URL @"welcomimageurl"                      //旧欢迎页图片地址
#define WELCOM_IMAGE_URL_NEW @"welcomimageurlnew"               //新欢迎页图片地址
#define CITY_VERSION @"cityversion"                             //城市版本
#define TAGS_VERSION @"tagsversion"                             //标签版本


//***********************配置账号信息******************************//
#define UmengAppkey @"5526027dfd98c5c895001153"
#define Appkey @"parnlink20150128"

#define GrayColor MColor(111, 113, 121, 1)
#define GrayColorSmall MColor(144, 144, 144, 1)

#define RedColor MColor(234, 67, 52, 1)
#define GreenColor MColor(0, 172, 142, 1)

#define LightRedColor MColor(247,139,152, 1)
#define UnnormalColor MColor(255, 255, 255, 0.4)
#define NormalColor MColor(255, 255, 255, 1)
#define HightColor MColor(0, 172, 142, 0.4)

